﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LoginServer
{
    public class MessageHeaders
    {
        #region Inbound Headers

        public const int IN_PING = 0x14;
        public const int IN_RELOG = 0x16;
        public const int IN_LOGIN = 0xFC;
        public const int IN_SOCK_FIN = -1; // -1 which is tested before headers.

        #endregion

        #region Outbound Headers

        public const int OUT_SERVER_LIST = 0xFD;
        public const int OUT_ERROR = 0xFE;

        #endregion

        #region Error Identifiers

        public const int ERROR_USERNAME = 121;
        public const int ERROR_PASSWORD = 120;
        public const int ERROR_VERIFICATION = 122;

        public const int ERROR_ACCOUNT_MAINTENANCE = 133;
        public const int ERROR_ACCOUNT_CONNECTED = 103;
        public const int ERROR_ACCOUNT_BLOCK = 119;

        public const int ERROR_SERVER = 136;
        public const int ERROR_SERVICE = 109;

        public const int ERROR_VERSION = 107;

        #endregion
    }
}
